#include <iostream>
using namespace std;
int main()
{
	string str = "";
	cin >> str;
	int left = 0, right = str.size() - 1;
	while (left < right)
	{
		char tmp = str[left];
		str[left] = str[right];
		str[right] = tmp;
		++left;
		--right;
	}
	cout << str;
	return 0;
}